]> git.r.bdr.sh - rbdr/super-polarity/blame - Super Polarity/ActorFactory.cs
Moves to ActorManager arch + Actor Inherited stuff
[rbdr/super-polarity] / Super Polarity / ActorFactory.cs
CommitLineData
f8aec187
BB
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Microsoft.Xna.Framework;
6using Microsoft.Xna.Framework.Graphics;
7using Microsoft.Xna.Framework.Content;
8
9namespace SuperPolarity
10{
11 static class ActorFactory
12 {
13 static internal ContentManager Content;
14
15 static public MainShip CreateMainShip(Vector2 position)
16 {
17 MainShip mainShip = new MainShip();
18 mainShip.Initialize(Content, Content.Load<Texture2D>("Graphics\\main-ship"), position);
19
20 ActorManager.CheckIn(mainShip);
21
22 return mainShip;
23 }
24
25 internal static void SetContentManager(ContentManager content)
26 {
27 Content = content;
28 }
29 }
30}